//
//  PKGroupDetailViewModel.m
//  PianKe
//
//  Created by lanou on 15/10/15.
//  Copyright (c) 2015年 李伟伟. All rights reserved.
//

#import "PKGroupDetailViewModel.h"

@implementation PKGroupDetailViewModel
-(void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"counterList"]) {
        _counterList = [[PKGroupCounterListModel alloc]init];
        [self.counterList setValuesForKeysWithDictionary:value];
    }else if ([key isEqualToString:@"userinfo"]){
        _userinfo = [[PKGroupUserinfoModel alloc]init];
        [self.userinfo setValuesForKeysWithDictionary:value];
    }else{
        [super setValue:value forKey:key];
    }
    
}
@end
